package orz.mikeneck.server.locrec.utils;

import java.util.List;

import orz.mikeneck.server.locrec.persistent.GpsRecord;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonWrapper {

	public static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";

	private static Gson gson;

	private static GsonBuilder builder;

	static{
		builder = new GsonBuilder();
		builder.setDateFormat(DATE_FORMAT);
	}

	public GsonWrapper(){
		gson = builder.create();
	}

	public String parse(Object results) {
		return gson.toJson(results);
	}

}
